//this is a js document
//点击图片后全屏展示该图片的详细信息，并在原来的屏幕上层新增一层隔离层，防止点击另外的屏幕连接或者按钮

function SHOWPICTURE(){
	function showPicture(){
		this.groupId = null;
		//被点击图片的src
		this.targetPictureSrc = "";
		//加载图片的起始下标
		this.loadIndex = null;
		//一次性加载数据的大小
		this.loadSize = 15;
		//展示图片的下标
		this.showIndex = 0;
		//保存加载的图片数据
		this.pictureArr = null;
	}
	showPicture.prototype = {
		//关联样式文件
		styleInit:function(){
			var link = document.createElement("link");
			link.rel = "stylesheet";
			link.href = "/networkforum/css/picture_show.css";
			var head = document.getElementsByTagName("head");
			document.head.appendChild(link);
		},
		//data数据格式必须满足json格式
		init:function(data){
			var self = this;
			self.styleInit();
			self.groupId = data.groupId;
			self.targetPictureSrc = data.targetPictureSrc;
			self.loadIndex = data.loadIndex;
			self.loadSize = data.loadSize==null?15:data.loadSize;
		},
		//图片展示
		show:function(){
			
		},
		loadInfo:function(){
			
		}
	}
	return showPicture();
}